package com.foreveross.project.usercenterserver.oauth2.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.Date;


@Data
@ApiModel(value = "租户信息", description = "租户信息")
public class TenantDto {

    @ApiModelProperty(value = "描述")
    private String description;


    @ApiModelProperty(value = "租户名称", required = true)
    @Size(min=2, max=200)
    private String tenantName;

    @ApiModelProperty(value = "租户所拥有权限值", required = true)
    @Size(min=2, max=200)
    private String authorities;


    @ApiModelProperty(value = "客户端支持的grant_type,多个逗号分隔", required = true)
    @Size(min=2, max=200)
    private String authorizedGrantTypes;



    @ApiModelProperty(value = "客户端标示，唯一", required = true)
    @Size(min=2, max=200)
    private String clientId;


    @ApiModelProperty(value = "客户端密钥", required = true)
    @Size(min=2, max=200)
    private String clientecret;

    @ApiModelProperty(value = "客户端到期时间", required = true)
    private Date expirationDate;



    @ApiModelProperty(value = "客户端的重定向URI,可为空, 当grant_type为authorization_code或implicit时, 在Oauth的流程中会使用并检查与注册时填写的redirect_uri是否一致")
    private String webServerRedirectUri;

    @ApiModelProperty(value = "租户uuid,创建时候可不传")
    private String tenantFkId;













}
